# coding=UTF-8
salary=input("请输入您的薪水\n");
if salary<3500:
    tax=0;
elif salary>=3500 and salary<8000:
    tax=(8000-3500)*0.02;
elif salary>=8000 and salary<20000:
    tax=(8000-3500)*0.02+(salary-8000)*0.05;
elif salary>=20000:
    tax=(8000-3500)*0.02+(20000-8000)*0.05+(salary-20000)*0.1;
print "您的薪水是",salary,"元","应缴税",tax,"元";